package com.zhudi.develop_demo_as.ui.activity;

import android.content.Intent;
import android.os.Bundle;

import com.zhudi.develop_demo_as.BaseActivity;
import com.zhudi.develop_demo_as.MainActivity;
import com.zhudi.develop_demo_as.R;

import butterknife.OnClick;

public class RegisterActivity extends BaseActivity {

    @Override
    protected int getLayoutView() {
        return R.layout.activity_register;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @OnClick(R.id.tvFinish)
    public void finish(){
        Intent intent = new Intent(this, MainActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); //注意本行的FLAG设置
        startActivity(intent);
    }
}
